package com.atguigu.gmall.gateway;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;


/**
 * 一个SpringCloud微服务 要连接注册中心，服务发现
 * @SpringBootApplication
 * @EnableDiscoveryClient
 * @EnableCircuitBreaker
 * 这三个的合体是 @SpringCloudApplication
 *
 *
 * Annotation @EnableCircuitBreaker found,
 * but there are no implementations. Did you forget to include a starter? 请导入sentinel或者hystrix的实现
 *
 */
@SpringCloudApplication
public class GatewayMainApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayMainApplication.class,args);
    }
}
